#include "guiterm.hpp"
#ifndef PROGRAMVIEWSEGMENT
#define PROGRAMVIEWSEGMENT

class ViewSegment
	:public QWidget
{
	Q_OBJECT
public:
	ViewSegment(Session *session, QWidget *parent=0);
	virtual ~ViewSegment();
	virtual void finished();
	Session *getSession();
	TerminalWindow *getWindow();
	
protected:
	Session *session;
};

class JobViewSegment
	:public ViewSegment
{
	Q_OBJECT
public:
	JobViewSegment(RemoteJob *job, QWidget *parent=0);
	~JobViewSegment();
	
protected:
	RemoteJob *job;
};

#endif
